package com.hjc.service.user;

import com.hjc.dao.user.RoleMapper;
import com.hjc.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service("roleService")
public class RoleSericeImpl implements RoleSerice {
    @Autowired
    public RoleMapper roleMapper;

    @Override
    public List<Role> Rolelist(Role roleCode) {
        return roleMapper.RoleMapperList(roleCode);
    }

    @Override
    public int addinfo(Role role) {
        return roleMapper.add(role);
    }

    @Override
    public int xg(Role role) {
        return roleMapper.modify(role);
    }

    @Override
    public int deleteinfo(Role role) {
        return roleMapper.delete(role);
    }


}
